import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CampusListComponent } from './campus-list/campus-list.component';
import { GroupDetailComponent } from './group-detail/group-detail.component';
import { MemberDetailComponent } from './member-detail/member-detail.component';
import { SchoolDetailComponent } from './school-detail/school-detail.component';

const routes: Routes = [
    { path: 'campus-list', component: CampusListComponent },
    { path: 'group-detail/:id', component: GroupDetailComponent },
    { path: 'member-detail/:studentId', component: MemberDetailComponent },
    { path: 'school-detail/:uniId', component: SchoolDetailComponent },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CampusRoutingModule { }
